<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class SubFour extends Base
{
    protected $hidden = ['created_at','updated_at'];

    public static function add($map)
    {


            $rew = self::create($map);
            if($rew){
                return 200;
            }

    }


    public function image()
    {
        return $this->belongsTo('App\Image','url','id');
    }

    public function cate()
    {
        return $this->belongsTo('App\Cate','cate_id','id');
    }

    public function chapters()
    {
        return $this->belongsTo('App\Chapter','chapters_id','id');
    }

}
